home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nikkei Mac 20
/
NIKKEI-MAC-CD-VOL-20-1998-12.ISO.7z
/
NIKKEI-MAC-CD-VOL-20-1998-12.ISO
/
オンラインソフト
/
8.インターネット
/
anarchie-pro-30.sit
/
Anarchie Pro 3.0
/
Scripting
/
AppleScripts
/
Download Files
next >
Wrap
Text File
|
1998-08-28
|
777b
|
30 lines
-- Set this to the path to your download file that lists the files to fetch
set theinput to (path to desktop folder as string) & "download"
set quitanarchie to false
set thedata to read file theinput
copy thedata & return to thedata
set newdata to ""
set i to 1
repeat while i イ (the number of paragraphs of thedata)
set theurl to paragraph i of thedata
if length of theurl > 0 then
tell application "Anarchie Pro"
set quitanarchie to true
with timeout of 3600 seconds
set err to fetch url theurl expand with ".,.,"
set keepit to (err is not 0)
end timeout
end tell
if keepit then
copy (newdata & (paragraph i of thedata) & return) to newdata
end if
end if
set i to i + 1
end repeat
set eof file theinput to 0
write newdata to file theinput